import request from '@/utils/request'

export function getCommissions(query) {
  return request({
    url: '/distribution/commission/getList',
    method: 'post',
    data: query
  })
}

export function getCommission(id) {
  return request({
    url: '/distribution/commission/getDetail',
    method: 'post',
    data: id
  })
}

export function saveCommisson(formdata) {
  return request({
    url: '/distribution/commission/save',
    method: 'post',
    data: formdata
  })
}
export function changeStatusByCommissonID(id) {
  return request({
    url: '/distribution/commission/change-status',
    method: 'post',
    data: id
  })
}

export function removeCommissonByID(id) {
  return request({
    url: '/distribution/commission/delete',
    method: 'post',
    data: id
  })
}

export function fetchCommissonAvailable() {
  return request({
    url: '/distribution/commission/getAvailable',
    method: 'post'
  })
}

